import { getDatePickerCellValue } from "./ElDatePicker";
import { createEditDateRender, createCellRender, createFormItemRender, createExportMethod } from "./common";

export default {
    renderEdit: createEditDateRender(
        {},
        () => {
            return [];
        },
        (renderOpts) => {
            const { props = {} } = renderOpts;
            return { format: props.format || "HH:mm:ss" };
        }
    ),
    renderCell: createCellRender(getDatePickerCellValue, () => {
        return ["HH:mm:ss"];
    }),
    renderItemContent: createFormItemRender(),
    exportMethod: createExportMethod(getDatePickerCellValue, () => {
        return ["HH:mm:ss"];
    }),
};
